<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8" />
  <meta name="viewport" id="viewport" content="width=device-width, initial-scale=1,minimum-scale=1, maximum-scale=1, user-scalable=no">
  <meta content="yes" name="apple-mobile-web-app-capable">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <title><%= title %></title>
    <link rel='stylesheet' href='/stylesheets/style.css' />
  </head>
  <body>
  <% if (user) { %>
  <h1>用户:<%=user.userName%></h1>
  <li><a href="/user/add">添加用户</a></li>
  <li><a href="/user/list">用户列表</a></li>
  <li><a href="/user/logout">退出</a></li>
  <% } else { %>
  <li> <a href="/user/login">登录</a></li>
  <li> <a href="/user/add">注册</a></li>
  <% } %>
  </body>
</html>
